/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

/**
 * <p>Project: jse2303 - While1
 * <p>Powered by webrx On 2023-07-11 17:38:05
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class While1 {
    public static void main(String[] args) {


        //while(条件){
        //
        //}

        int i = 0;
        while (i < 5) {
            System.out.println(++i);
        }
        System.out.println("--------------------");
        //do while()
        int n = 6;
        do {
            System.out.println(n--);
        } while (n > 0);
    }
}
